package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.equipment.EquipmentService;
import com.ruoyi.system.domain.equipment.EquipmentServiceDTO;

import java.util.List;

/**
 * 设备保养项目Service接口
 *
 * @author ruoyi
 * @date 2023-04-13
 */
public interface IEquipmentServiceService extends IService<EquipmentService> {
    /**
     * 生成保养设备的定时任务
     * @param dto
     * @return
     */
    boolean insertWithSchedule(EquipmentServiceDTO dto);

    /**
     * 删除保养任务时，同时删除定时任务
     * @param idList
     * @return
     */
    int removeWithSchedule(List<Long> idList);
}
